import http from './http.js';
import recommend from './recommend'
import user from './user'
import yunCun from './yunCun'
/**
 * api(request) {
 *  {
 *    type:请求类型
 *  url:请求地址
 *  formData:是否使用formDate格式入参  true 启用  false 不启用
 *  },request
 * }
 *  
 * */

const apis = {
    //手机登录
    phoneLogin(request) {
        return http.server({
            type:'get',
            url:'/login/cellphone',
        },request)
    },
    //邮箱登录
    emailLogion(request) {
        return http.server({
            type:'get',
            url:'/login'
        },request)
    },
    //banner
    getBanner(request) {
        return http.server({
            type:'get',
            url:'/banner'
        },request)
    },
    //获取歌曲详情
    getMusicDetail(request) {
        return http.server({
            type:'get',
            url:'/song/detail'
        },request)
    },
    recommend: {
        ...recommend
    },
    user: {
        ...user
    },
    yunCun: {
        ...yunCun
    }
}

export default apis;

